/*
 * Created: Author: Ivan Lampert / Date: Jan 25, 2015
 * 
 * Changed: $Author: ac280593@gmail.com $ / $Date: 2015-06-04 21:24:45 -0300 (Thu, 04 Jun 2015) $
 */
package com.cpm.wrapper;

import com.cpm.wrapper.exception.SystemException;
import java.io.Serializable;

public final class SolidStrings implements Serializable {
    private static final long serialVersionUID = 1L;

    private SolidStrings() {}
    
    public static final void notEmpty(String value) {
        SolidObjects.notNull(value);
        if (value.isEmpty()) {
            throw new SystemException("String vazia inesperada encontrada!");
        }
    }
    
    public static final boolean isEmpty(String value) {
        return value == null || value.trim().isEmpty();
    }
}
